package com.hlb.zh.page;

import com.github.pagehelper.PageInfo;
import com.hlb.zh.pojo.Students;

import java.util.List;

/**
 * Created by Administrator on 2016/12/17.
 */
public class Page <T>{
    private List<T> list;
    private PageInfo <T> pageInfo;
    private Integer pageSize;

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
       if(pageSize==null){
           pageSize=10;
       }else {
           this.pageSize=pageSize;
       }
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public PageInfo<T> getPageInfo() {
        return pageInfo;
    }

    public void setPageInfo(PageInfo<T> pageInfo) {
        this.pageInfo = pageInfo;
    }

    @Override
    public String toString() {
        return "Page{" +
                "list=" + list +
                ", pageInfo=" + pageInfo +
                ", pageSize=" + pageSize +
                '}';
    }
}
